package com.sunyu.log.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.sql.Timestamp;


/**
 * Table:公告表
 * @author sunyu
 * @date 2017-05-08 17:11:51
 *
 */
public class Announcement implements Serializable{

    private static final long serialVersionUID = -5741153992375114032L;

    private Integer id;
    //主题
    private String title;
    //内容
    private String content;
    //插入时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Timestamp insertDatetime;
    //有效时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Timestamp expiryDatetime;
    //插入人
    private String insertOperator;

    //getters and setters
    public Integer getId(){
        return id;
    }
    public void setId(Integer id){
        this.id = id;
    }
    public String getTitle(){
        return title;
    }
    public void setTitle(String title){
        this.title = title;
    }
    public String getContent(){
        return content;
    }
    public void setContent(String content){
        this.content = content;
    }
    public Timestamp getInsertDatetime(){
        return insertDatetime;
    }
    public void setInsertDatetime(Timestamp insertDatetime){
        this.insertDatetime = insertDatetime;
    }
    public Timestamp getExpiryDatetime(){
        return expiryDatetime;
    }
    public void setExpiryDatetime(Timestamp expiryDatetime){
        this.expiryDatetime = expiryDatetime;
    }
    public String getInsertOperator(){
        return insertOperator;
    }
    public void setInsertOperator(String insertOperator){
        this.insertOperator = insertOperator;
    }

}